package main

import "fmt"

func bar() (string, int) {
	return "hello", 32
}

func foo() string {
	return "xx"
}

func test(a string) int {
	// a, b := bar() ok
	// fmt.Println(a, b)

	// a = foo() ok
	// fmt.Println(a)

	a := foo() // error  no new variables on left side of :=
	fmt.Println(a)

	return 23
}

func main() {
	test("23asd")
}
